<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="js/vue.js"></script>
    <div id="app">
        <label  v-for="item in hobbies":for="item">
            <input  type="checkbox" value="item" :id="item"v-model="myHobbies">{{item}}    
        </label>
        <h2>{{myHobbies}}</h2>
    </div>
    <script>
        let app = new Vue({
            el:'#app',
            data:{
                hobbies:['篮球','排球','羽毛球','足球','乒乓球','唱','跳','Rap'],
                myHobbies:[]
            }
        })
    </script>
</body>
</html>